package msg
import (
	"github.com/name5566/leaf/network/protobuf"
)

var (
	Processor = protobuf.NewProcessor()
)

func init() {	// 这里我们注册了一个 protobuf 消息)
    Processor.Register(&StartFight{})
    Processor.Register(&FightResult{})
    Processor.Register(&EnterFight{})
    Processor.Register(&SignUpResponse{})
    Processor.Register(&TosChat{})
    Processor.Register(&TocChat{})
    Processor.Register(&Login{})
    Processor.Register(&PlayerBaseInfo{})
    Processor.Register(&LoginSuccessfull{})
    Processor.Register(&LoginFaild{})
    Processor.Register(&JoinRoom{})
    Processor.Register(&LeaveRoom{})
    Processor.Register(&JoinSuccess{})
    Processor.Register(&JoinFaild{})
    Processor.Register(&MovePos{})
    Processor.Register(&MoveRot{})
    Processor.Register(&MoveStart{})
    Processor.Register(&MoveInput{})
    Processor.Register(&PlayerData{})
    Processor.Register(&InputClick{})
}